<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layuiAdmin 管理员 iframe 框</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
</head>
<body>
<div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">父级分类</label>
        <div class="layui-input-inline">
            <select name="pid" lay-filter="firstCateList" class="layui-input">
                @if($info['pid'] == 0)
                    <option value="0">无父级分类</option>
                    @foreach($firstCateList as $cate)
                        <option
                            {{$cate['id'] == $info['pid'] ? 'selected' : ''}} value="{{$cate['id']}}">{{$cate['name']}}</option>
                    @endforeach
                @else
                    @foreach($firstCateList as $cate)
                        <option
                            {{$cate['id'] == $info['pid'] ? 'selected' : ''}} value="{{$cate['id']}}">{{$cate['name']}}</option>
                    @endforeach
                        <option value="0">无父级分类</option>
                @endif
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline">
            <input type="text" name="name" lay-verify="required" placeholder="请输入分类名称" autocomplete="off"
                   class="layui-input" value="{{$info['name']}}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">icon</label>
        <div class="layui-input-inline">
            <input type="text" name="icon" lay-verify="required" placeholder="请输入图标" autocomplete="off"
                   class="layui-input"  value="{{$info['icon']}}">
        </div>
        <div class="layui-form-mid layui-word-aux">例如：fa-asterisk，图标参考：<a href="http://code.zoomla.cn/boot/font.html"
                                                                          target="_block">点击查看</a></div>
    </div>


    <div class="layui-form-item layui-hide">
        <input type="submit" lay-submit lay-filter="submit" id="submit" value="确认">
    </div>
</div>
<script src="/layuiadmin/layui/layui.js"></script>
<script>
    layui.use('form', function () {

    });
</script>
</body>
</html>
